<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddAgentForPlayer extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('player', function (Blueprint $table) {
            $table->tinyInteger('recommend_ratio')->default(10)->comment('充值积分奖励比例0-100');
            $table->tinyInteger('is_agent')->default(0)->comment('是否是代理');
            $table->decimal('money_agent')->default(0)->comment('代理余额');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
